//
//  YFMapSearchResultCell.m
//  project
//
//  Created by yefei on 2019/5/5.
//  Copyright © 2019 健健. All rights reserved.
//

#import "YFMapSearchResultCell.h"

@interface YFMapSearchResultCell ()

@property (weak, nonatomic) IBOutlet UILabel *POINameLabel;

@property (weak, nonatomic) IBOutlet UILabel *detailAddressLabel;

@end

@implementation YFMapSearchResultCell



- (void)setPoi:(AMapPOI *)poi {
    _poi = poi;
    if (poi.name.length != 0) {
        self.POINameLabel.text = poi.name;
    } else {
        self.POINameLabel.text = poi.address;
    }
    self.detailAddressLabel.text = [NSString stringWithFormat:@"%@%@%@%@", poi.province, poi.city, poi.district, poi.address];
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
}



- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
